import { Controller, Post, Body } from '@nestjs/common';
import { RoleService } from './role.service'
@Controller('role')
export class RoleController {
  constructor(
    private readonly roleService: RoleService
  ) { }

  @Post('/add')
  async add(
    @Body() data: any
  ) {
    return await this.roleService.add(data)
  }
  
  @Post('/delete')
  async delete(
    @Body() data:any
  ){
  const result =  await this.roleService.delete(data)
  return result
  }
}
